package com.rjh.concurrent.create;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "c.ExtendsThreadDemo")
public class ExtendsThreadDemo    {

    public static void main(String[] args) {
        MyThread t1 = new MyThread();
        t1.setName("t1");
        t1.start();
        log.debug("main:[{}] running",Thread.currentThread().getName());
    }
}

@Slf4j(topic = "c.MyThread")
class MyThread extends Thread{

    @Override
    public void run() {
        log.debug("MyThread:[{}] running ",Thread.currentThread().getName());
    }
}
